﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;
using System.ServiceModel;
using Model;

namespace WCF
{
    [ServiceContract]
    public interface IShowService
    {
        [OperationContract]
        List<Show> GetAllShowsThisDate(DateTime dateTime, bool retriveAssociation);

        [OperationContract]
        Show FindShow(DateTime dateTimeStart, string cName, bool retriveAssociation);

        [OperationContract]
        Show FindShowWithId(int id, bool retriveAssociation);

        [OperationContract]
        void DeleteShow(DateTime dateTime, string cName);

        [OperationContract]
        void CreateShow(string serialNo,string cName, string dateStart,string dateEnd, string pricePerTicket);

        [OperationContract]
        List<Show> FindAllShows(bool retrieveAssociation);
    }
}
